$(function(){
	imgSrcToggle();
});

//实现鼠标经过图片，更改图片的src属性
function imgSrcToggle(){
	//定义图片变量
	var imgElement = $(".xiutu-content img");
	//定义一个图片数组
	var imgArray = ["img/CameraRaw.png","img/Photoshop.png","img/Lightroom.png","img/RAW.png","img/PsBrush.png"];
	var imgArrayNew = ["img/Photoshop.png","img/CameraRaw.png","img/PsBrush.png","img/RAW.png","img/Lightroom.png"];
	//循环加载图片信息
	for(var i = 0 ; i < imgArray.length ; i++){
		imgElement.eq(i).attr("src",imgArray[i]);
	}
	$(".xiutu-content img").hover(function(){
		//得到当前鼠标经过图片的序号
		var i = imgElement.index(this);
		imgElement.eq(i).attr("src",imgArrayNew[i]);
	},function(){
		var i = imgElement.index(this);
		imgElement.eq(i).attr("src",imgArray[i]);
	}
	);
}